Skip to content

fix:add indexdb storage#1339

Merged
elribonazo merged 10 commits into
mainfrom
fix/web-indexdb-storage
Sep 22, 2025
Merged

fix:add indexdb storage#1339
elribonazo merged 10 commits into
mainfrom
fix/web-indexdb-storage

Conversation

@elribonazo

@elribonazo elribonazo commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

Explanation

Add simple storage wrapper using indexeddb for web platforms and dapps.
This same new storage will be used for dappClient and mwp.

Also improved the way we are mocking each environment now we don't need to duplicate the code but call a runTestInPlatform function and the rest is done for you, this loads global variables for nodejs, web and react-native platforms and enables us to test real scenarios without directly doing any native work

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@elribonazo elribonazo requested a review from a team as a code owner July 30, 2025 11:42
cursor[bot]

This comment was marked as outdated.

@codecov

codecov Bot commented Jul 30, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.93%. Comparing base (26005b4) to head (57ee31c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1339   +/-   ##
=======================================
  Coverage   74.93%   74.93%           
=======================================
  Files         184      184           
  Lines        4513     4513           
  Branches     1105     1105           
=======================================
  Hits         3382     3382           
  Misses       1131     1131           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@sonarqubecloud

Copy link
Copy Markdown

@elribonazo elribonazo force-pushed the fix/web-indexdb-storage branch from 559c497 to d0b35c4 Compare September 17, 2025 15:48
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

chakra-guy
chakra-guy previously approved these changes Sep 18, 2025
},
} as any;
return __storage;
});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm a little confused. Why do we need fake-indexeddb/auto if we're just mocking the adapter that wraps it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thats true, fake-indexeddb/auto is no longer needed. This mock came after

@sonarqubecloud

Copy link
Copy Markdown

@elribonazo elribonazo merged commit 1f44b88 into main Sep 22, 2025
42 checks passed
@elribonazo elribonazo deleted the fix/web-indexdb-storage branch September 22, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants